package com.chb.decorator;

/**
 * @author chihb
 * @create-time 2024/10/24 14:32
 * @description
 */
public abstract class Decorator extends ABatterCake{

    private ABatterCake aBatterCake;

    public Decorator(ABatterCake aBatterCake) {
        this.aBatterCake = aBatterCake;
    }

    @Override
    protected String getDesc() {
        return aBatterCake.getDesc();
    }

    @Override
    protected int cost() {
        return aBatterCake.cost();
    }

}
